/**
 * 
 */
package com.pmsco.pms.core.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * @author Long Tran
 *
 */
@Entity
@Table(
	name = "PMS_ROLE",
	uniqueConstraints = {
		@UniqueConstraint(columnNames = "ROLE")
	}
)
public class PmsRole {
	private Long id;
	private String role;
	private String description;
	private String logonRedirectUrl;
	
	public static String idField = "id";
	
	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue
	@Column(name = "ID", nullable = false)
	public Long getId() {
		return id;
	}
	
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	
	/**
	 * @return the role
	 */
	@Column(name = "ROLE", nullable = false)
	public String getRole() {
		return role;
	}
	
	/**
	 * @param role the role to set
	 */
	public void setRole(String role) {
		this.role = role;
	}
	
	/**
	 * @return the description
	 */
	@Column(name = "DESCRIPTION", nullable = false)
	public String getDescription() {
		return description;
	}
	
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	
	/**
	 * @return the logonRedirectUrl
	 */
	@Column(name = "LOGON_REDIRECT_URL", nullable = false)
	public String getLogonRedirectUrl() {
		return logonRedirectUrl;
	}
	
	/**
	 * @param logonRedirectUrl the logonRedirectUrl to set
	 */
	public void setLogonRedirectUrl(String logonRedirectUrl) {
		this.logonRedirectUrl = logonRedirectUrl;
	}
}
